// 导入
import request from '@/utils/request'

// 新增
export const saveApi = (data) => {
  return request({
    url: 'api/question/save',
    method: 'post',
    data:data
  })
}
//查询
export const pageApi = (data) => {
  return request({
    url: 'api/question/page',
    method: 'get',
    params: data
  })
}
//修改
export const updateApi = (data) => {
  return request({
    url: 'api/question/update',
    method: 'post',
    data: data
  })
}
//修改
export const deleteApi = (quetionIds) => {
  return request({
    url: 'api/question/delete/'+quetionIds,
    method: 'post',
  })
}


//批量删除
export const deleteBatchApi = (data) => {
  return request({
    url: 'api/question/deletebatch',
    method: 'post',
    data: data
  })
}

//上传文件
export const upload = (file) => {
  return request({
    url: 'api/question/deletebatch',
    method: 'post',
    data: data
  })
}
